import { $baseApi } from "@/utils/http-instance"
import useCommonStore from "@/store/common"
import type { Params } from "@/types/common"

const commonStore = useCommonStore()

// 榜单详情
export const $getHotRankDetail = (id: string, params: Params) => $baseApi.get(`hot-lists/get-of-sale/${id}`, params)

// 获取推荐推荐榜单 10-景区口碑榜 20-线路口碑榜 30-酒店口碑榜
export const $getHotListRecommended = (params: Params) =>
	$baseApi.get(`regions/${commonStore.region_id}/hot-lists/get-of-recommended`, params)
